<?php

class Application_Model_Boot
{
	protected $_id;
	protected $_created;
	protected $_lastupdater;
	protected $_lastupdated;
	protected $_schiffsart;
	protected $_schiffsmodell;
	protected $_breite;
	protected $_laenge;
	protected $_hoehe;
	protected $_rumpf;
	protected $_knoten;
	protected $_passagiere;
	protected $_reichweite;
	protected $_kabinenanzahl;
/**
	 * @return the $_lastupdater
	 */
	public function getLastupdater() {
		return $this->_lastupdater;
	}

	/**
	 * @return the $_lastupdated
	 */
	public function getLastupdated() {
		return $this->_lastupdated;
	}

	/**
	 * @param field_type $_lastupdater
	 */
	public function setLastupdater($_lastupdater) {
		$this->_lastupdater = $_lastupdater;
	}

	/**
	 * @param field_type $_lastupdated
	 */
	public function setLastupdated($_lastupdated) {
		$this->_lastupdated = $_lastupdated;
	}

	// 	protected $_profilbild;

	public function __construct (array $options = null)
	{
		if (is_array($options))
		{
			$this->setOptions($options);
		}
	}
	public function setOptions (array $options)
	{
		$methods = get_class_methods($this);
		foreach ($options as $key => $value)
		{
			$method = 'set' . ucfirst($key);
			if (in_array($method, $methods))
			{
				$this->$method($value);
			}
		}
		return $this;
	}

	public function __set ($name, $value)
	{
		$method = 'set' . ucfirst($name);
		if (('mapper' == $name) || ! method_exists($this, $method))
		{
			throw new Exception('Invalid boot property');
		}
		$this->$method($value);
	}
	
	public function __get ($name)
	{
		$method = 'get' . ucfirst($name);
		if (('mapper' == $name) || ! method_exists($this, $method))
		{
			throw new Exception('Invalid boot property');
		}
		return $this->$method();
	}
	
	/**
	 * @return the $_id
	 */
	public function getId() {
		return $this->_id;
	}

	/**
	 * @return the $_created
	 */
	public function getCreated() {
		return $this->_created;
	}

	/**
	 * @return the $_schiffsart
	 */
	public function getSchiffsart() {
		return $this->_schiffsart;
	}

	/**
	 * @return the $_schiffsmodell
	 */
	public function getSchiffsmodell() {
		return $this->_schiffsmodell;
	}

	/**
	 * @return the $_breite
	 */
	public function getBreite() {
		return $this->_breite;
	}
	
	/**
	 * @return the $_laenge
	 */
	public function getLaenge() {
		return $this->_laenge;
	}

	/**
	 * @return the $_hoehe
	 */
	public function getHoehe() {
		return $this->_hoehe;
	}
	
	/**
	 * @return the $_rumpf
	 */
	public function getRumpf() {
		return $this->_rumpf;
	}
	
	/**
	 * @return the $_kabinenahnzahl
	 */
	public function getKabinenanzahl() {
		return $this->_kabinenanzahl;
	}

	/**
	 * @return the $_profilbild
	 */
// 	public function getProfilbild() {
// 		return $this->_profilbild;
// 	}
	
	/**
	 * @param field_type $_id
	 */
	public function setId($_id) {
		$this->_id = $_id;
	}

	/**
	 * @param field_type $_created
	 */
	public function setCreated($_created) {
		$this->_created = $_created;
	}

	/**
	 * @param field_type $_schiffsart
	 */
	public function setSchiffsart($_schiffsart) {
		$this->_schiffsart = $_schiffsart;
	}

	/**
	 * @param field_type $_schiffsmodell
	 */
	public function setSchiffsmodell($_schiffsmodell) {
		$this->_schiffsmodell = $_schiffsmodell;
	}

	/**
	 * @param field_type $_breite
	 */
	public function setBreite($_breite) {
		$this->_breite = $_breite;
	}
	
	/**
	 * @param field_type $_laenge
	 */
	public function setLaenge($_laenge) {
		$this->_laenge = $_laenge;
	}

	/**
	 * @param field_type $_hoehe
	 */
	public function setHoehe($_hoehe) {
		$this->_hoehe = $_hoehe;
	}

	/**
	 * @param field_type $_rumpf
	 */
	public function setRumpf($_rumpf) {
		$this->_rumpf = $_rumpf;
	}
	
	/**
	 * @param field_type $_kabinenanzahl
	 */
	public function setKabinenanzahl($_kabinenanzahl) {
		$this->_kabinenanzahl = $_kabinenanzahl;
	}
	
	/**
	 * @param field_type $_profilbild
	 */
// 	public function setProfilbild($_profilbild) {
// 		$this->_profilbild = $_profilbild;
// 	}

	/**
	 * @return the $_knoten
	 */
	public function getKnoten() {
		return $this->_knoten;
	}

	/**
	 * @return the $_passagiere
	 */
	public function getPassagiere() {
		return $this->_passagiere;
	}

	/**
	 * @return the $_reichweite
	 */
	public function getReichweite() {
		return $this->_reichweite;
	}

	/**
	 * @param field_type $_knoten
	 */
	public function setKnoten($_knoten) {
		$this->_knoten = $_knoten;
	}

	/**
	 * @param field_type $_passagiere
	 */
	public function setPassagiere($_passagiere) {
		$this->_passagiere = $_passagiere;
	}

	/**
	 * @param field_type $_reichweite
	 */
	public function setReichweite($_reichweite) {
		$this->_reichweite = $_reichweite;
	}
	
}